import request from '@/router/axios';

/**
 * 政策信息表列表数据
 *
 */
export const getList = (current, size, params) => {
  return request({
    url: '/policy/subject/page',
    method: 'POST',
    params: {
      ...params,
      current,
      size,
    }
  })
}

export const remove = (data) => {
  return request({
    url: '/policy/subject/remove',
    method: 'post',
    data: data
  })
}

export const getSelectList = (current, size, params) => {
  return request({
    url: '/policy/subject/selectPage',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}

export const selectSave = (policyIds, subjectId) => {
  return request({
    url: '/policy/subject/selectSave',
    method: 'post',
    params: {
      policyIds,
      subjectId
    }
  })
}